/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.scene.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Objects;


@ApiModel(value = "作业活动步骤的jsa项", description = "作业活动步骤的jsa项实体类")
public class StageItem {

    public StageItem() {
        super();
    }

    @ApiModelProperty(value = "id", name = "id" )
    private String id;

    @ApiModelProperty(value = "名称", name = "name" )
    private String name;

    @ApiModelProperty(value = "潜在危害", name = "hiddenDanger", required = true)
    private String hiddenDanger;

    @ApiModelProperty(value = "防范措施", name = "precaution", required = true)
    private String precaution;

    @ApiModelProperty(value = "风险评估", name = "risk", required = true)
    private String risk;

    @ApiModelProperty(value = "排序号", name = "itemIndex", required = true)
    private Integer itemIndex;

    @ApiModelProperty(value = "拆分步骤的Id", name = "activityStageId", required = true)
    private String activityStageId;

    @ApiModelProperty(value = "参考的水司jsaId", name = "corpJsaId", required = true)
    private String corpJsaId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHiddenDanger() {
        return hiddenDanger;
    }

    public void setHiddenDanger(String hiddenDanger) {
        this.hiddenDanger = hiddenDanger;
    }

    public String getPrecaution() {
        return precaution;
    }

    public void setPrecaution(String precaution) {
        this.precaution = precaution;
    }

    public String getRisk() {
        return risk;
    }

    public void setRisk(String risk) {
        this.risk = risk;
    }

    public String getCorpJsaId() {
        return corpJsaId;
    }

    public void setCorpJsaId(String corpJsaId) {
        this.corpJsaId = corpJsaId;
    }

    public Integer getItemIndex() {
        return itemIndex;
    }

    public void setItemIndex(Integer itemIndex) {
        this.itemIndex = itemIndex;
    }

    public String getActivityStageId() {
        return activityStageId;
    }

    public void setActivityStageId(String activityStageId) {
        this.activityStageId = activityStageId;
    }

    @Override
    public String toString() {
        return "StageItem{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", hiddenDanger='" + hiddenDanger + '\'' +
                ", precaution='" + precaution + '\'' +
                ", risk='" + risk + '\'' +
                ", corpJsaId='" + corpJsaId + '\'' +
                '}';
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        StageItem stageItem = (StageItem) o;
        return Objects.equals(getId(), stageItem.getId());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getId());
    }


}
